/**
 * Created by meiyun1 on 2017/8/9.
 */
import Vue from 'vue'
import params from '../conf/params'

export default {
  getFileList (search) {
    return Vue.http.get(`${params.base_url}/file/list`, {params: search})
  },
  uploadFile (data) {
    return Vue.http.post(`${params.base_url}/file/attachment/upload`, data)
  }
}
